<div class="title"><span>Reply to feedback</span> <div class="clear">&nbsp;</div></div>

<div class="margin">
<?php flash(); //display flash data ?>
<?php if(isset($replied)): ?>
	<div class="msg notice"><span></span><h5>Notice</h5>You have already replied to this feedback!</div>
<?php endif;?>
<?php echo form_open('admin/reply_feedback/'.$v->id); ?>

<div class="input-block"><label>Customer</label><input type="text" value="<?php echo $v->customer ?>" disabled="disabled"/></div>
<div class="input-block"><label>Email</label><input type="text" value="<?php echo $v->email ?>" disabled="disabled"/></div>
<div class="input-block"><label>Contact</label><input type="text" value="<?php echo $v->contact ?>" disabled="disabled"/></div>
<div class="input-block"><label>Message</label><textarea disabled="disabled" cols="40" rows="10"><?php echo $v->message; ?></textarea></div>
<?php if(!isset($replied)):?>
<div class="input-block"><label>Response</label><?php echo form_error('response', '<div class="form-error">', '</div>')?><textarea name="response" cols="40" rows="10"></textarea></div>
<?php echo form_hidden('id', $v->id);?>
<?php echo form_hidden('email', $v->email);?>
<?php echo form_submit(array('name' => 'send', 'value' => 'Send', 'class' => 'fbtn add'));?>
<?php endif;?>
<?php echo form_close();?>

<a href="<?php echo site_url('admin/feedback/')?>" class="back-btn"><span>Back</span></a>
</div>